package com.chenlixian.fishandbearpaw.dao;

import com.chenlixian.fishandbearpaw.entity.Dto.CommentDto;
import com.chenlixian.fishandbearpaw.entity.Dto.MessageDto;
import com.chenlixian.fishandbearpaw.entity.Dto.ShareDto;
import com.chenlixian.fishandbearpaw.entity.Dto.ShareImgDto;
import com.chenlixian.fishandbearpaw.entity.Vo.CommentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShareDao {
    List<ShareDto> queryShare(ShareDto share);
    List<ShareImgDto> queryShareImg(String shareId);
    Integer vote(String imgId);
    Integer checkIsFavorite(@Param("userId") Integer userId,@Param("fUserId") Integer fUserId);
    List<CommentVo> queryAllComment(String shareId);
    Integer addComment(CommentDto commentDto);
    void addShareImg(ShareImgDto shareImgDto);
    Integer addShare(ShareDto shareDto);
    void addMessage(@Param("userId")Integer userId,@Param("opUserId")Integer opUserId,@Param("op")Integer op);
    Integer queryMessage(Integer userId);
    Integer clearMessage(Integer userId);
    List<MessageDto> getMessage(Integer userId);
}
